layui.define(['layer',], function (exports) {
    var layer = layui.layer;

    var commonLayer = {
        iframe: function (title, path) {
            layer.open({
                type: 2,
                title: title,
                shade: 0.1,
                area: ['600px', '550px'],
                content: path
            });
        },
        
        confirm: function (tips, yes) {

        }

    };

    //输出接口
    exports('open', commonLayer); // 使用的模块名称
});